package StudyCode.summary.mydatetime;

import java.time.DayOfWeek;
import java.time.LocalDate;
import java.time.Year;
import java.time.temporal.TemporalAdjusters;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class EveryFirstMonday {
	public static void main(String[] args) {
		for (int i = 1; i <= 12; i++) {
			LocalDate date = Year.now().atMonth(i).atDay(1).with(TemporalAdjusters.firstInMonth(DayOfWeek.MONDAY));
			System.out.println(i + "月的周一是:" + date);
		}
	}
}
